package com.example.goodpet.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class MainChannel {


    @SerializedName("code")
    private Integer code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("result")
    private ResultDTO result;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public static class ResultDTO {
        @SerializedName("title")
        private TitleDTO title;
        @SerializedName("banner_info")
        private List<BannerInfoDTO> bannerInfo;
        @SerializedName("channel_info")
        private List<ChannelInfoDTO> channelInfo;

        public TitleDTO getTitle() {
            return title;
        }

        public void setTitle(TitleDTO title) {
            this.title = title;
        }

        public List<BannerInfoDTO> getBannerInfo() {
            return bannerInfo;
        }

        public void setBannerInfo(List<BannerInfoDTO> bannerInfo) {
            this.bannerInfo = bannerInfo;
        }

        public List<ChannelInfoDTO> getChannelInfo() {
            return channelInfo;
        }

        public void setChannelInfo(List<ChannelInfoDTO> channelInfo) {
            this.channelInfo = channelInfo;
        }

        public static class TitleDTO {
            @SerializedName("name")
            private String name;
            @SerializedName("id")
            private Integer id;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            @Override
            public String toString() {
                return "TitleDTO{" +
                        "name='" + name + '\'' +
                        ", id=" + id +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ResultDTO{" +
                    "title=" + title +
                    ", bannerInfo=" + bannerInfo +
                    ", channelInfo=" + channelInfo +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "MainChannel{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", result=" + result +
                '}';
    }
}
